package com.atguigu.daijia.consumer;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class KafkaConsumer {

    //监听消费
    @KafkaListener(topics = {"test"})
    public void onNormalMessage(String message) {
        System.out.println("简单消费：" + message);
    }


}
